package com.example.springboot01.metaAnno;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author keyer
 * @Description : 描述
 * Created by cyd on 2021-05-06 10:22:59
 */
@EnableScheduling
public class TestMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DemoConfig.class);
        DemoService bean = context.getBean(DemoService.class);
        bean.outPutResult();
        context.close();
    }
}
